package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 公开资源
 */
@Controller
@RequestMapping("/pub")
public class PubController {

    @GetMapping("/pub1")
    @ResponseBody
    public Object pub1() {
        return "公开的资源";
    }
}